package xiaoqianlang.service;

import xiaoqianlang.pojo.User;

public interface UserService {
    //用户注册
    void register(String username,String email,String rawPassword);
    //用户登录
    User login(String usernameOrEmail, String password);
    //通过用户id查询用户信息
    User getUserById(Long id);
    //根据用户名获取用户信息
    User getUserByUsername(String username);
    //根据邮箱获取用户信息
    User getUserByEmail(String email);
}